<?php
require_once './objects.php';
require_once './functions.php';
session_start();
header('Content-Type: application/json; charset=utf-8');
//$datos = json_decode($_GET["datos"]);
$id=$_GET["id"];
$nick=$_GET["nick"];


$conexion1 = mysql_connect("localhost", "root", "root");
mysql_select_db("stick_wars", $conexion1);
$datos="UPDATE usuarios SET user='$nick' WHERE id_user='$id' ";
mysql_query($datos) or die(mysql_error());



$array="ok1";
echo json_encode($array);

//' . $nombre . '
?>